package com.orc.converter;

import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.File;
import java.io.IOException;

/**
 * 配置文件加载器，负责从JSON文件加载配置信息
 */
public class ConfigLoader {
    private static final ObjectMapper objectMapper = new ObjectMapper();

    /**
     * 从文件加载配置
     */
    public static ConversionConfig loadConfig(String configFilePath) throws IOException {
        return objectMapper.readValue(new File(configFilePath), ConversionConfig.class);
    }
}
    